import matplotlib
matplotlib.use('TkAgg')
import  matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
sns.set_style('darkgrid')
# 中文乱码
# plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['font.sans-serif'] = ['Heiti TC']
tips = pd.read_csv('./data/tips.csv')
sns.boxplot(x='day',y='total_bill',hue='time',data=tips)
plt.show()
